<style>
p {
	margin:0
}
</style>
<div class="form-group" {guanlians}>
		<label class="col-xs-12 col-sm-3 col-md-2 right-label">{{check_show_lang('{title}')}}</label>
		<div class="col-xs-12 col-sm-8 col-lg-9">
				<textarea style="height:400px;" type="text/plain" id="ueditor-{name}" class="form-control ueditor"  ng-model="{tovalue}.{name}" cols="70"></textarea>
				<div class="help-block">{help}</div>
		</div>
</div>
<script type="text/javascript">

//初始化百度编辑器        
        var pagestate = 0;
		UE.delEditor('ueditor-{name}');
		var ue_{name} = UE.getEditor("ueditor-{name}", {
            topOffset: 0,
            autoFloatEnabled: false,
            autoHeightEnabled: false,
            autotypeset: {
                removeEmptyline: true
            },
            maximumWords : 9999999999999,
            initialFrameHeight: 607,
            focus : false,
            toolbars : [['fullscreen', 'source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'strikethrough', 'forecolor', 'backcolor', '|','justifyleft', 'justifycenter', 'justifyright', '|', 'insertorderedlist', 'insertunorderedlist', 'blockquote', 'emotion', 'removeformat', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight','indent', 'paragraph', 'fontsize', '|','inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol','mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|', 'anchor', 'map', 'print', 'drafts', '|','autotypeset','insertcode','myinsertvideo','preview']],
        });
		ue_{name}.ready(function() {
            if(window.scope.pagedata.item.{name} && window.scope.pagedata.item.{name}!=null){
				//alert(window.scope.pagedata.item.content);
				ue_{name}.setContent(window.scope.pagedata.item.{name});
			}
			ue_{name}.addListener('contentChange',function(){
                window.current_ue=ue_{name};
				window.scope.pagedata.item.{name}=ue_{name}.getContent();
                pagestate = 1;
            });
			
        });

</script>